package com.feng.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.common.utils.PageUtils;
import com.feng.gulimall.product.entity.CategoryEntity;
import com.feng.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author fengge
 * @email sunlightcs@gmail.com
 * @date 2022-09-25 20:34:44
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //查询所有分类，并组装成父子的树形结构
    List<CategoryEntity> listWithTree();
     //菜单批量删除功能
    void removeMenuByIds(List<Long> asList);
   //找到catelogId完整路径
    Long[] findCatelogPath(Long catelogId);
  //级联更新
    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

